package com.tiku.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName user_question_log
 */
@TableName(value ="user_question_log")
@Data
public class UserQuestionLog implements Serializable {
    /**
     * 
     */
    @TableId
    private String id;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 题目ID
     */
    private String questionId;

    /**
     * 用户答案
     */
    private String useranswer;

    /**
     * 是否正确
     */
    private Integer rightflag;

    private String chapterInfoId;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(exist = false)
    private Date createTime;

    @TableField(exist = false)
    private String chapterName;

    @TableField(exist = false)
    private String stem;

    @TableField(exist = false)
    private QuestionTable questionTable;

    @TableField(exist = false)
    private Integer errorCount;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}